﻿<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>资源库单位查询</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="${pageContext.request.contextPath }/scripts/boot.js" type="text/javascript"></script>
<style type="text/css">
    html, body{
        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
    }    
</style>
</head>
<body>
	<div style="width:100%;">
	<div class="mini-toolbar" style="border-bottom:0;padding:0px;">
	<table style="width:100%;">
	<tr>
		<td style="width:100%;">
		<a class="mini-button"iconCls="icon-edit" onclick="edit()">编辑</a> </td>
		<td style="white-space:nowrap;text-align:right;">
			<input id="key1"  maxlength="8" class="mini-textbox" emptyText="请输入8位劳动保障证号" style="width:150px;"  onenter="onKeyEnter" />
			<input id="key2" class="mini-textbox" emptyText="请输入单位名称" style="width:150px;" onenter="onKeyEnter" />
			<a class="mini-button"iconCls="icon-search" onclick="search()">查询</a>
			<a class="mini-button"iconCls="icon-remove" onclick="onReset()">重置</a>
		</td>
	</tr>
	</table>
	</div>
	</div>
	<div class="mini-fit">
	<div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;"  allowResize="true"
		frozenStartColumn="0" frozenEndColumn="4" 
		url="unit.do?method=getunit1" idField="id" >
	<div property="columns">
	<!--<div type="indexcolumn"></div>        -->
		<div type="checkcolumn"></div>
		<div field="aab001"  width="120"  headerAlign="center"  allowSort="true">劳动保障证号</div>
		<div field="aab004"  width="120"  headerAlign="center"  allowSort="true">单位名称</div>
		<div field="aab998"  width="120"  headerAlign="center"  allowSort="true">统一社会信用代码</div>
		<div field="aab003"  width="120"  headerAlign="center"  allowSort="true">组织机构代码</div>
		<div field="aab019"  width="120"  headerAlign="center"  allowSort="true">单位性质</div>
		<div field="aab030"  width="120"  headerAlign="center"  allowSort="true">地税登记证号</div>
		<div field="aae004"  width="120"  headerAlign="center"  allowSort="true">联系人</div>
		<div field="aae005"  width="120"  headerAlign="center"  allowSort="true">联系电话</div>
		<div field="aab013"  width="120"  headerAlign="center"  allowSort="true">法定代表人/负责人姓名</div>
		<div field="aae018"  width="120"  headerAlign="center"  allowSort="true">法定代表人证件类型</div>
		<div field="aab014"  width="120"  headerAlign="center"  allowSort="true">法定代表人证件号码</div>
		<div field="aab015"  width="120"  headerAlign="center"  allowSort="true">法定代表人联系电话</div>
		<div field="aab301" width="120"  headerAlign="center"  allowSort="true" visible="false">注册区划</div>
		<div field="aabc62" width="120"  headerAlign="center"  allowSort="true" visible="false">注册街道</div>
		<div field="aabc63" width="120"  headerAlign="center"  allowSort="true" visible="false">注册社区</div>
		<div field="aae006"  width="120"  headerAlign="center"  allowSort="true" visible="false">注册地址</div>
		<div field="aabc64" width="120"  headerAlign="center"  allowSort="true" visible="false">经营/办公地区划</div>
		<div field="aabc65" width="120"  headerAlign="center"  allowSort="true" visible="false">经营/办公地街道</div>
		<div field="aabc66" width="120"  headerAlign="center"  allowSort="true" visible="false">经营/办公地社区</div>
		<div field="aabc67"  width="120"  headerAlign="center"  allowSort="true" visible="false">经营/办公地址</div>
		<div field="aab012"  width="120"  headerAlign="center"  allowSort="true" visible="false">批准文号</div>
		<div field="aab010"  width="120"  headerAlign="center"  allowSort="true" visible="false">批准单位/注册登记机关</div>
		<div field="aab011"  width="120"  headerAlign="center"  allowSort="true"dateFormat="yyyy-MM-dd" visible="false">批准日期/成立日期</div>
		<div field="aab022"  width="120"  headerAlign="center"  allowSort="true" visible="false">所属行业</div>
	   	<div field="aaa149"  width="120"  headerAlign="center"  allowSort="true" visible="false">行业风险类别</div>
	   	<div field="aae007"  width="120"  headerAlign="center"  allowSort="true" visible="false">邮编</div>
	  	<div field="aab006"  width="120"  headerAlign="center"  allowSort="true" visible="false">工商营业执照种类</div>
	  	<div field="aab007"  width="120"  headerAlign="center"  allowSort="true" visible="false">工商营业执照号码</div>
	  	<div field="aab008"  width="120"  headerAlign="center"  allowSort="true" dateFormat="yyyy-MM-dd" visible="false">工商营业发照日期</div>
	    <div field="aab009"  width="120"  headerAlign="center"  allowSort="true" visible="false">工商营业执照有效期限</div>
	    <div field="aab021"  width="120"  headerAlign="center"  allowSort="true" visible="false">隶属关系</div>
	    <div field="aabc61"  width="120"  headerAlign="center"  allowSort="true" visible="false">工商营业执照注册机关</div>
	    <div field="aab020"  width="120"  headerAlign="center"  allowSort="true" visible="false">经济类型</div>
	    <div field="aab023"  width="120"  headerAlign="center"  allowSort="true" visible="false">主管部门或总机构</div>
	    <div field="aab049"  width="120"  headerAlign="center"  allowSort="true" visible="false">注册资金</div>
	    <div field="aabc68"  width="120"  headerAlign="center"  allowSort="true" visible="false">是否派遣/中介单位</div>
	    <div field="aab075"  width="120"  headerAlign="center"  allowSort="true" visible="false">单位规模</div>
	    <div field="aab620"  width="120"  headerAlign="center"  allowSort="true" visible="false" >单位监管状态/单位注销原因</div>
	    <div field="aab523"  width="120"  headerAlign="center"  allowSort="true" dateFormat="yyyy-MM-dd" visible="false">单位注销日期</div>
	    <div field="aae013"  width="120"  headerAlign="center"  allowSort="true" visible="false">备注</div>
	    <div field="aae011"  width="120"  headerAlign="center"  allowSort="true">登记操作人</div>
	    <div field="aab002"  width="120"  headerAlign="center"  allowSort="true" visible="false">社会保险登记证编号</div>
	    <div field="aae036"  width="120"  headerAlign="center"  allowSort="true" dateFormat="yyyy-MM-dd">登记操作时间</div>
	    <div field="aae047"  width="120"  headerAlign="center"  allowSort="true" dateFormat="yyyy-MM-dd" visible="false">成立日期</div>
	</div>
	</div>
	</div>
<script type="text/javascript">
	mini.parse();
	var grid = mini.get("datagrid1");
	grid.load();
	function edit() {
		var row = grid.getSelected();
		if (row) {
			mini.open({
				url : bootPATH + "../page/AB01/unit/AB01_edit.jsp",
				title : "编辑",
				width : 1200,
				height : 600,
				onload : function() {
					var iframe = this.getIFrameEl();
					var data = {
						action : "edit",
						id : row.aab001   
					};
					iframe.contentWindow.SetData(data);
				},
				ondestroy : function(action) {
					grid.reload();
				}
			});
		} else {
			mini.alert("请选中一条记录");
		}
	}
	function onReset(e) {     
		mini.get("key1").setValue("");
		mini.get("key2").setValue("");
    }
	function search() {
		var key1 = mini.get("key1").getValue().trim();
		var key2 = mini.get("key2").getValue().trim();
		if(key1==key2&key1==""){
			mini.alert("请输入劳动保障证号或单位名称!");
		}
		grid.load({
			key1 : key1,
			key2 : key2
		});	
	}
	function onKeyEnter(e) {
		search();
	}	
	
	</script>
</body>
</html>
